package cn.zhp.controller;

import cn.zhp.entity.Result;
import cn.zhp.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("manager/user")
public class SysUserController {

    @Autowired
    SysUserService service;


    @RequestMapping(value = "selectByRid/{rid}")
    public Result selectByRid(@PathVariable("rid") long rid) {
        return new Result(true, "查询成功", service.selectByRid(rid));
    }

    @RequestMapping("selectNoRole")
    public Result selectNoRole(long rid, long oid) {
        return new Result(true, "操作成功", service.selectNoRole(rid, oid));
    }


}
